<?php
class TeacherDepartment extends Zend_Db_Table{
    	protected $_name ="teacher_department";
	protected $_primary = 'id';

     //根据id 查询teacher
    public function getteacherdeparmentByid($id){
          $select = $this->select();
          $select->where("id=".$id);
          return $this->fetchAll($select)->toArray();
    }

 //更新teacher
    public function updateteacherdepartmentByid($array,$id){

		$db = $this->getAdapter();
		$where=$db->quoteInto('id = ?', $id);
		$this->update($array, $where);
	}
//删除teacher
     public function delteacherdepartmentByid($id){
          $where = 'id = '. $id;
         $this->delete($where);
         return true;
    }
}
?>
